<%@ page import="org.springside.core.Constants"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<fmt:message key="portlet_16" var="portlet_16"/>
<ff:boxportlet header="${portlet_16}">
    	  <c:if test="${param.y==10}">
	         <c:set var="length" value="4"></c:set>
	      </c:if>
	      
	       <c:if test="${param.y != 10}">
	         <c:set var="length" value="${param.y}"></c:set>
	       </c:if>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
	<tr>
		<td valign="top">       
 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tbl_left_ico">
        <c:forEach items="${ballotQuestionnaires}" var="ballotQuestionnaire" begin="0" end="4"> 
        <tr>
                <td>
		        	
		        	<A title="${ballotQuestionnaire.title}" href = "#" onClick="javascript:openwinCanResize('<c:url value="/modules/ballot/ballotQuestionnaire.do?method=show&id=${ballotQuestionnaire.id}&isDegree=${ballotQuestionnaire.isDegree}&tagger=show&openwin=true"/>',100,100,730,480,'yes');" >	<c:if test="${fn:length(ballotQuestionnaire.title)> length}">
		                	${fn:substring(ballotQuestionnaire.title,0,length)}...
		                </c:if>
		                <c:if test="${fn:length(ballotQuestionnaire.title)<= length}">
		                	${ballotQuestionnaire.title}
		                </c:if> 
		        	</a>
		        	(<font color="#999999"><fmt:formatDate value="${ballotQuestionnaire.sysDate}" pattern="MM-dd HH:mm"/> </font>)
                </td>
              </tr>
            </c:forEach>
            <c:if test="${fn:length(ballotQuestionnaires) < 1}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(ballotQuestionnaires) < 2}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(ballotQuestionnaires) < 3}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(ballotQuestionnaires) < 4}"> <tr><td>&nbsp;</td></tr></c:if>
            <c:if test="${fn:length(ballotQuestionnaires) < 5}"> <tr><td>&nbsp;</td></tr></c:if>
   	</table> 
	<table width="100%" height="17">
        <tr>
          <td>&nbsp;</td>
          <td width="30" class="tbl_more_ico_td">
          <a href="#" class="link_portlet" onClick='mainJump("/modules/ballot/ballotQuestionnaire.do?method=ballotList&ec_s_sysDate=desc","<%=Constants.USER_THEME_FRAME %>")'
         	title="<fmt:message key="common_more" />"><fmt:message key="common_more" /></a></td>
        </tr>
     </table>
		</td>
	</tr>
</table>	
</ff:boxportlet>

